package com.elong.qadev.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 * 
* @ClassName: Log_TaskInfo
* @Description: TODO(TASK运行记录的基础类)
* @author kangchen
* @date 2015年9月29日
*
 */
@Entity
@Table(name = "LOG_TASKINFO", schema = "ti")
public class Log_TaskInfo {
	public Log_TaskInfo(int id, int taskId, String taskName,
			String lastBatchNumber, String configer, int total, int passed,
			int failed, int aborted, Date startDate, Date endDate) {
		super();
		this.id = id;
		this.taskId = taskId;
		this.taskName = taskName;
		this.lastBatchNumber = lastBatchNumber;
		this.configer = configer;
		this.total = total;
		this.passed = passed;
		this.failed = failed;
		this.aborted = aborted;
		this.startDate = startDate;
		this.endDate = endDate;
	}
	public Log_TaskInfo() {
		super();
		// TODO Auto-generated constructor stub
	}
	private int id;
	private int taskId;
	private String taskName;
	private String lastBatchNumber;
	private String configer;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", unique = true, nullable = false, length = 10)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Column(name = "TASKID",nullable = true, length = 100)
	public int getTaskId() {
		return taskId;
	}
	public void setTaskId(int taskId) {
		this.taskId = taskId;
	}
	@Column(name = "TASKNAME", nullable = true, length = 100)
	public String getTaskName() {
		return taskName;
	}
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	@Column(name = "LASTBATCHNUMBER", nullable = true, length = 50)
	public String getLastBatchNumber() {
		return lastBatchNumber;
	}
	public void setLastBatchNumber(String lastBatchNumber) {
		this.lastBatchNumber = lastBatchNumber;
	}
	@Column(name = "CONFIGER", nullable = true, length = 20)
	public String getConfiger() {
		return configer;
	}
	public void setConfiger(String configer) {
		this.configer = configer;
	}
	@Column(name = "TOTAL", nullable = true, length = 10)
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	@Column(name = "PASSED", nullable = true, length = 10)
	public int getPassed() {
		return passed;
	}
	public void setPassed(int passed) {
		this.passed = passed;
	}
	@Column(name = "FAILED", nullable = true, length = 10)
	public int getFailed() {
		return failed;
	}
	public void setFailed(int failed) {
		this.failed = failed;
	}
	@Column(name = "ABORTED", nullable = true, length = 10)
	public int getAborted() {
		return aborted;
	}
	public void setAborted(int aborted) {
		this.aborted = aborted;
	}
	@Temporal(TemporalType.TIMESTAMP)
    @Column(name = "STARTDATE", length = 7)
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	@Temporal(TemporalType.TIMESTAMP)
    @Column(name = "ENDDATE", length = 7)
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	@Override
	public String toString() {
		return "Log_TaskInfo [id=" + id + ", taskId=" + taskId + ", taskName="
				+ taskName + ", lastBatchNumber=" + lastBatchNumber
				+ ", configer=" + configer + ", total=" + total + ", passed="
				+ passed + ", failed=" + failed + ", aborted=" + aborted
				+ ", startDate=" + startDate + ", endDate=" + endDate + "]";
	}
	private int total;
	private int passed;
	private int failed;
	private int aborted;
	private Date startDate;
	private Date endDate;
}
